<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="UTF-8" />
    <title>HTML to PDF</title>
    <!--<link href="style.css" rel="stylesheet" type="text/css" />-->

    <style type="text/css">
        body {
            font-family: "Songti SC";
        }

        h1 {
            color:#ccc;
        }
        table tr td{
            text-align:center;
            border:1px solid gray;
            padding:4px;
        }
        table tr th{
            background-color:#84C7FD;
            color:#fff;
            width: 100px;
        }
        .itext{
            color:#84C7FD;
            font-weight:bold;
        }
        .description{
            color:gray;
        }

    </style>
</head>
<body>
<h1>HTML to PDF 中文标题 Test</h1>
<p>
    <span class="itext">itext</span> 5.5.2 <span class="description"> converting HTML to PDF 中文标题</span>
</p>
<table>
    <tr>
        <th class="label">Title 中文标题</th>
        <td>iText - Java HTML to PDF 中文标题</td>
    </tr>
    <tr>
        <th>URL</th>
        <td>http://hmkcode.com/itext-html-to-pdf-using-java</td>
    </tr>
</table>
</body>
</html>